package ch.pizzapp.kurier.data;

import android.os.Parcel;
import android.os.Parcelable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class Price implements Parcelable {

	@JsonProperty("saleprice")
	Double saleprice;
	@JsonProperty("price")
	Double price;

	public Double getSaleprice() {
		return this.saleprice;
	}

	public void setSaleprice(Double saleprice) {
		this.saleprice = saleprice;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	protected Price(Parcel in) {
		saleprice = in.readDouble();
		price = in.readDouble();
	}

	public Price() {
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		dest.writeDouble(saleprice);
		dest.writeDouble(price);
	}

	public static final Parcelable.Creator<Price> CREATOR = new Parcelable.Creator<Price>() {
		public Price createFromParcel(Parcel in) {
			return new Price(in);
		}

		public Price[] newArray(int size) {
			return new Price[size];
		}
	};
}